package ch.fusun.baron.coatofarms.ui;

import ch.fusun.baron.coatofarms.ui.background.COABackground;
import ch.fusun.baron.coatofarms.ui.background.DiagonallyDownDividedBackground;
import ch.fusun.baron.coatofarms.ui.background.DiagonallyUpDividedBackground;
import ch.fusun.baron.coatofarms.ui.background.HorizontallyDividedBackground;
import ch.fusun.baron.coatofarms.ui.background.VerticallyDividedBackground;

/**
 * Data defining a single Coat of arms
 */
public class CoatOfArmsData {
	/** Background of the coat of arms */
	private COABackground background;

	/** Symbol (Bear, Lion, Spear, Sword etc.) */
	private COAForeground foreground;

	/**
	 * TODO SDZ Remove this as soon as possible, it's just for registration
	 */
	private DiagonallyDownDividedBackground test;
	private DiagonallyUpDividedBackground test2;
	private HorizontallyDividedBackground test3;
	private VerticallyDividedBackground test4;

	/**
	 * Kryo constructor
	 */
	public CoatOfArmsData() {
	}

	/**
	 * @param background
	 *            The background pattern
	 * @param foreground
	 *            The foreground pattern
	 */
	public CoatOfArmsData(COABackground background, COAForeground foreground) {
		this.background = background;
		this.foreground = foreground;
	}

	/**
	 * @return The background
	 */
	public COABackground getBackground() {
		return background;
	}

	/**
	 * @return foreground
	 */
	public COAForeground getForeground() {
		return foreground;
	}

	/**
	 * @return A unique string
	 */
	public String uniqueCode() {
		return background.uniqueCode();
	}
}
